/**
 * 
 */
package net.phoenix.repository;

/**
 * @author lixf
 *
 */
public class BasicName implements Name{
	private String namespace;
	private String prefix;
	private String local;
	public BasicName(String url, String prefix, String local){
		this.namespace = url;
		this.prefix = prefix;
		this.local = local;
	}
	@Override
	public String getQName() {
		if(this.prefix!=null)
			return this.prefix+":"+this.local;
		else
			return this.local;
	}
	@Override
	public String getLocalName() {
		return this.local;
	}
	@Override
	public String getNamespace() {
		return this.namespace;
	}
}
